package net.oschina.jhssm.module.system.service.impl;

import net.oschina.jhssm.common.service.impl.BaseServiceImpl;
import net.oschina.jhssm.module.system.dao.SysLogMapper;
import net.oschina.jhssm.module.system.entity.SysLog;
import net.oschina.jhssm.module.system.query.SysLogQuery;
import net.oschina.jhssm.module.system.service.ISysLogService;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by zhaojb on 2017/8/21.
 */
@Service
public class SysLogServiceImpl extends BaseServiceImpl<SysLog> implements ISysLogService {

    private SysLogMapper sysLogMapper;

    @Autowired
    public SysLogServiceImpl(SysLogMapper sysLogMapper) {
        super.baseMapper = sysLogMapper;
        this.sysLogMapper = sysLogMapper;
    }

	@Override
	public List<SysLog> selectForList(SysLogQuery query) {
		return sysLogMapper.selectForList(query);
	}

	@Override
	public Integer clear(SysLogQuery query) {
		return sysLogMapper.clear(query);
	}
}
